package com.strival.web.controller;

import com.strival.bal.api.UserService;
import com.strival.bal.dto.UserBaseInfo;
import com.strival.bal.exception.BizException;
import com.strival.web.vo.LoginResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * Author:zhangyu
 * create on 15/9/12.
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/account/login")
    public LoginResult login(
            @RequestParam(value="username",required=true)String username,
            @RequestParam(value="password",required=true)String password
    ){
        return new LoginResult().setStatus(true).setMessage("登陆成功");
    }
}
